package com.alinesno.cloud.base.storage.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.alinesno.cloud.common.facade.orm.entity.BaseEntity;

/**
 * <p>
 * 请求记录
 * </p>
 *
 * @author WeiXiaoJin
 * @since 2020-01-19 21:16:09
 */
@Entity
@Table(name = "storage_requests")
public class StorageRequestsEntity extends BaseEntity {

	private static final long serialVersionUID = 1L;

	/**
	 * 请求路径
	 */
	@Column(name = "request_url")
	private String requestUrl;
	
	/**
	 * 请求应用
	 */
	@Column(name = "request_application")
	private String requestApplication;

	/**
	 * 请求信息
	 */
	@Column(name = "agent")
	private String agent;

	/**
	 * 文件名称
	 */
	@Column(name = "filename")
	private String filename;

	/**
	 * 请求IP
	 */
	@Column(name = "request_ip")
	private String requestIp;
	/**
	 * 响应时间
	 */
	@Column(name = "response_time")
	private long responseTime;
	/**
	 * 请求用户
	 */
	@Column(name = "request_user_id")
	private String requestUserId;
	/**
	 * 文件类型
	 */
	@Column(name = "request_type")
	private String requestType;
	/**
	 * 请求用户名
	 */
	@Column(name = "request_username")
	private String requestUsername;

	public String getFilename() {
		return filename;
	}

	public void setFilename(String filename) {
		this.filename = filename;
	}

	public String getRequestUrl() {
		return requestUrl;
	}

	public void setRequestUrl(String requestUrl) {
		this.requestUrl = requestUrl;
	}

	public String getRequestApplication() {
		return requestApplication;
	}

	public void setRequestApplication(String requestApplication) {
		this.requestApplication = requestApplication;
	}

	public String getRequestIp() {
		return requestIp;
	}

	public void setRequestIp(String requestIp) {
		this.requestIp = requestIp;
	}

	public long getResponseTime() {
		return responseTime;
	}

	public void setResponseTime(long responseTime) {
		this.responseTime = responseTime;
	}

	public String getRequestUserId() {
		return requestUserId;
	}

	public void setRequestUserId(String requestUserId) {
		this.requestUserId = requestUserId;
	}

	public String getRequestType() {
		return requestType;
	}

	public void setRequestType(String requestType) {
		this.requestType = requestType;
	}

	public String getRequestUsername() {
		return requestUsername;
	}

	public void setRequestUsername(String requestUsername) {
		this.requestUsername = requestUsername;
	}

	public String getAgent() {
		return agent;
	}

	public void setAgent(String agent) {
		this.agent = agent;
	}

	@Override
	public String toString() {
		return "StorageRequestsEntity{" + "requestUrl=" + requestUrl + ", requestApplication=" + requestApplication
				+ ", requestIp=" + requestIp + ", responseTime=" + responseTime + ", requestUserId=" + requestUserId
				+ ", requestType=" + requestType + ", requestUsername=" + requestUsername + "}";
	}
}
